<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Stats!</title>


    <!-- Bootstrap -->
    <link href="http://vota.ucpropone.cl/static/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="http://vota.ucpropone.cl/static/js/bootstrap.min.js"></script>
<h1>N&uacute;mero de alumnos que han votado: {{n_votos }}</h1>
<table class="table table-hover">
    {% for t,r in temas.items %}
    {% for row in r %}
    <tr>
        {% if row.2 == True %}
        <td><b>{{t}}</b></td>
        <td><b>{{row.0}}</b></td>
        <td><b>{{row.1}}</b></td>
        {% else %}
        <td>{{t}}</td>
        <td>{{row.0}}</td>
        <td>{{row.1}}</td>
        {% endif %}
    </tr>
    {% endfor %}
    {% endfor %}
</table>
</body>
</html>